package com.example.hellospringbootstarterautoconfigure.service;

public class HelloService {

    private HelloProperties helloProperties;

    public String sayHello(String name) {
        return this.helloProperties.getPrefix() + name + this.helloProperties.getSuffix();
    }

    /**
     * 构造器
     * @param helloProperties
     */
    public HelloService(HelloProperties helloProperties) {
        this.helloProperties = helloProperties;
    }
}
